using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class Gun : Weapon
{
    private void OnDrawGizmos()
    {
        Gizmos.color = Color.red;
        Gizmos.DrawCube(transform.position, new Vector3(0.1f, 0.1f, 0.1f));
    }

    public override void Fire()
    {
        float r = GameMgr.Get<IPlayerManager>().Player.Towards;

        GameMgr.Get<IEffectManager>().InstantiateEffect("ShootEffect", transform.position, r);
        AudioControl.Instance.PlaySound(name,0.5f);
    }

    
}
